package it.poste.il.compensatore.dao;

import it.poste.il.compensatore.entities.SDPRequest;

import java.util.List;

import org.springframework.stereotype.Repository;

/**
 * Interface for SDPRequestDao.
 */
@Repository
public interface SDPRequestDao extends BaseEntityDao<SDPRequest> {

	/**
	 * Take the list of SDP Requests from an SDP Request as filter.
	 * @param entityFilter Entity SDP Request uses as filter.
	 * @return List The List of SDP Requests.
	 */
	List<SDPRequest> loadByFilter(SDPRequest entityFilter);

	/**
	 * Take the SDP Requests from an SDP Request as filter.
	 * @param entityFilter Entity SDP Request uses as filter.
	 * @return SDPRequest The Entity SDP Request founded.
	 */
	SDPRequest loadByReq(SDPRequest entityFilter);

	/**
	 * Take the list of SDP Requests using the last inserted SDP Request as filter.
	 * @param entityFilter Entity SDP Request uses as filter.
	 * @return List The List of SDP Requests.
	 */
	List<SDPRequest> loadLastCounter(SDPRequest entityFilter);
}
